﻿using System.Collections.Generic;
using Rodunu.Movies.Services.Models.Netflix.Attributes;

namespace Rodunu.Movies.Services.Models.Netflix
{
    public class Award
    {
        [XPath("/award_nominee/@year")]
        public int Year { get; set; }

        [XPath("/award_nominee/category/@scheme")]
        public string AwardType { get; set; }

        [XPath("/award_nominee/category/@label")]
        public string Category { get; set; }

        [XPath("/award_nominee/link[@rel='http://schemas.netflix.com/catalog/person']")]
        public Link Nominee { get; set; }
    }

    public class AwardList : List<Award>
    {
        [XPath("/awards/award_nominee")]
        public List<Award> Items
        {
            get { return this; }
        }
    }
}